package com.bjpowernode.mvc.model.param;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;


@Data
public class BidParam {

    @NotNull(message = "必须有产品")
    @Min(value = 1,message = "产品不存在")
    private Integer productId;

    @NotNull(message = "投资金额错误")
    @Min(value = 100,message = "投资金额错误")
    private BigDecimal bidMoney;
}
